<?php

interface IUser
{
    /*
     * 根据uid返回用户信息
     */
    public function getUserByUid($uid);

    /*
     *
     */
    public function getUserByUname($uname);

    /*
     *
     */
    public function getUserByEmail($email);
    
    /*
     * 根据uid返回关注该id的人
     */
    public function getFollowers($uid, $pnum, $psize);

    /*
     * 根据uid返回该id关注的人
     */
    public function getFolloweds($uid, $pnum, $psize);

    /*
     *
     */
    public function addUser($userData);

    /*
     *
     */
    public function editUser($userData);

    /*
     *
     */
    public function followUser($uid_follow, $uid_followed);

    /*
     *
     */
    public function unFollowUser($uid_follow, $uid_followed);

    /*
     * 
     */
    public function checkPwd($email, $pwd);
         
    /*
     * 
     */
    public function verifyUser($str_encode);
}
